/*
 * @Author: yuanjunyi
 * @Date: 2024-02-23 14:33:26
 * @LastEditors: yuanjunyi
 * @LastEditTime: 2024-04-19 17:27:13
 * @Description: this is description
 */
/*
 * @Author: lg
 * @Date: 2024-02-28 09:13:39
 * @LastEditors: zhouxuan
 * @LastEditTime: 2024-04-19 17:22:52
 * @Description: -
 * @FilePath: \stell-mall\src\router\index.ts
 */
import { createRouter, createWebHistory } from "vue-router";
import HomeView from "@/views/home/major/index.vue";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      redirect: "/home",
    },
    {
      path: "/home",
      name: "home",
      component: HomeView,
    },
    {
      path: "/software-mall", // 软件商城
      name: "software-mall",
      // component: () => import('@/views/software-mall/major/index.vue'),
      children: [
        {
          path: "dispatch-work-apply",
          name: "dispatch-work-apply",
          component: () =>
            import("@/views/software-mall/dispatch-work-apply/major/index.vue"),
        },
        {
          path: "painting-apply",
          name: "painting-apply",
          component: () =>
            import("@/views/software-mall/painting-apply/major/index.vue"),
        },
        {
          path: "install-apply",
          name: "install-apply",
          component: () =>
            import("@/views/software-mall/install-apply/major/index.vue"),
        },
        {
          path: "urge-secretary",
          name: "urge-secretary",
          component: () =>
            import("@/views/software-mall/urge-secretary/major/index.vue"),
        },
        {
          path: "wisdom-erp",
          name: "wisdom-erp",
          component: () =>
            import("@/views/software-mall/wisdom-erp/major/index.vue"),
        },
        {
          path: "crm",
          name: "crm",
          component: () => import("@/views/software-mall/crm/major/index.vue"),
        },
        {
          path: "management-cockpit",
          name: "management-cockpit",
          component: () =>
            import("@/views/software-mall/management-cockpit/major/index.vue"),
        },
      ],
    },
    {
      path: "/ecological-services", // 生态服务
      name: "ecological-services",
      // component: () => import("@/views/ecological-services/major/index.vue"),
      children: [
        {
          path: "/contract-fulfillment",
          name: "contract-fulfillment",
          component: () =>
            import(
              "@/views/ecological-services/contract-fulfillment/major/index.vue"
            ),
        },
        {
          path: "/artisan-talent",
          name: "artisan-talent",
          component: () =>
            import(
              "@/views/ecological-services/artisan-talent/major/index.vue"
            ),
        },
        {
          path: "/technical-services",
          name: "technical-services",
          component: () =>
            import(
              "@/views/ecological-services/technical-services/major/index.vue"
            ),
        },
        {
          path: "/legal-consulting",
          name: "legal-consulting",
          component: () =>
            import(
              "@/views/ecological-services/legal-consulting/major/index.vue"
            ),
        },
        {
          path: "/labour-service",
          name: "labour-service",
          component: () =>
            import(
              "@/views/ecological-services/labour-service/major/index.vue"
            ),
        },
        {
          path: "/financial-tax-consult",
          name: "financial-tax-consult",
          component: () =>
            import(
              "@/views/ecological-services/financial-tax-consult/major/index.vue"
            ),
        },
        {
          path: "/system-certification",
          name: "system-certification",
          component: () =>
            import(
              "@/views/ecological-services/system-certification/major/index.vue"
            ),
        },
      ],
    },
    {
      path: "/steel-home", // 钢构之家
      name: "steel-home",
      component: () => import("@/views/steel-home/major/index.vue"),
    },
    {
      path: "/steel-home-detail", // 钢构之家
      name: "steel-home-detail",
      component: () => import("@/views/steel-home/detail/index.vue"),
    },
    {
      path: "/intelligent-manufacturing", // 智能制造
      name: "intelligent-manufacturing",
      component: () =>
        import("@/views/intelligent-manufacturing/major/index.vue"),
    },
    {
      path: "/about-us", // 关于我们
      name: "about-us",
      component: () => import("@/views/about-us/major/index.vue"),
    },
  ],
});

export default router;
